package com.itcs.eureka.service;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;

/**
 * @program: ITCS_CLOUD
 * @ClassName: PayApiFeignClientService
 * @Description: FeignClient渠道服务适配器
 * @author: wanghui
 * @date: 2019/5/13 12:42
 * @Version: 1.0
 */
public interface PayApiFeignClientService{

    /**
     * 作用: 获取交易码
     * 场景:
     * 其他:
     * @Title getTrancode
     * @Date: 2019/5/16 10:51
     * @param
     * @return java.lang.String
     * @throws
     */
     String getTrancode();

    /**
     * 作用: 交易统一入口
     * 场景:
     * 其他:
     * @Title exchange
     * @Date: 2019/5/13 18:09
     * @param reqRecord 参数
     * @return java.util.Map<java.lang.String,java.lang.Object>
     * @throws
     */
    @RequestMapping(value = "/{trancode}", method = RequestMethod.POST, produces = "application/json")
    Map<String, Object> exchange(String serverId, String trancode, Map<String, Object> reqRecord);

}